﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcEngine.Blog
{
    public class ControlKeys
    {
        protected ControlKeys() { }

        public const string BlogPosts = "BlogPosts";
        public const string BlogTags = "BlogTags";
        public const string BlogCategories = "BlogCategories";
        public const string BlogSendEmail = "BlogSendEmail";
        public const string BlogSettings = "BlogSettings";
    }

    public class BlogCacheKeys 
    {
        protected BlogCacheKeys() { }

        public class PostKeys
        {
            protected PostKeys() { }

            public const string PostId = "Post_{0}";
            public const string PostName = "Post_{0}_{1}";
            public const string Category = "PostCategory";
            public const string PostCount = "Post_Blog__Count_{0}_{1}";
            public const string PostBlogPaging = "Post_Blog_Paging_{0}_{1}_{2}";
            public const string PostCategoryPaging = "Post_Category_Paging_{0}_{1}_{2}";
            public const string PostTagPaging = "Post_Tag_Paging_{0}_{1}_{2}";
        }

        public class Comment
        {
            protected Comment() { }

            public const string CommentId = "Comment_{0}";
            public const string Category = "CommentCategory";
        }

        public class CategoryKeys
        {
            public const string CategoryId = "CategoryId_{0}";
            public const string BlogCategories = "BlogCategories_{0}";
            public const string PostCategories = "PostCategories_{0}";
            public const string Category = "BlogCategoryCategory";
            public const string Paging = "Tag_Paging_{0}_{1}_{2}";
        }

        public class TagKeys
        {
            public const string TagId = "CategoryId_{0}";
            public const string Category = "TagCategory";
            public const string Paging = "Tag_Paging_{0}_{1}_{2}";
            public const string PostTags = "PostTags_{0}";
            public const string TagList = "Tags_List_{0}";
        }

        public const string BlogPage = "BlogPage_{0}";
        public const string BlogId = "Blogs_{0}";
        public const string BlogName = "BlogName_{0}";
        public const string Blogs = "Blogs";
        public const string BlogCategory = "BlogCategory";


        
        
    }
}
